home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-30 | 2.5 KB | 163 lines | [TEXT/CWIE] |
- { DModalRadiosData.p -- data container class for Everything}
-
- Unit DModalRadiosData;
- Interface
-
- Uses
- Types,
- OSUtils,
-
-
- AMSignaler;
-
- const
- idRadioGroup2 = longint ('Rad2');
- idGroup2 = longint ('Gro2');
- idGraphic3 = longint ('Gra3');
- idBevel2 = longint ('Bev2');
- idText2 = longint ('Tex3');
-
- type
- {----------}
- DModalRadiosData = object (AMSignaler)
-
- {data members}
- mRadioGroup2: SInt16;
- mGroup2: SInt16;
- mGraphic3: SInt16;
- mBevel2: SInt16;
- mText2: SInt16;
-
- {methods}
- Procedure Initialize; Override;
-
- Function GetRadioGroup2: SInt16;
- Procedure SetRadioGroup2 (inValue: SInt16);
- Function GetGroup2: SInt16;
- Procedure SetGroup2 (inValue: SInt16);
- Function GetGraphic3: SInt16;
- Procedure SetGraphic3 (inValue: SInt16);
- Function GetBevel2: SInt16;
- Procedure SetBevel2 (inValue: SInt16);
- Function GetText2: SInt16;
- Procedure SetText2 (inValue: SInt16);
- end;
-
- {----------}
- Function NewDModalRadiosData: DModalRadiosData;
-
- {----------}
- Implementation
-
- {----------}
- Function NewDModalRadiosData: DModalRadiosData;
- var
- data: DModalRadiosData;
- begin
- data := nil;
- New (data);
- if data <> nil then begin
- data.Initialize;
- end;
- NewDModalRadiosData := data;
- end;
-
- {----------}
- Procedure DModalRadiosData.Initialize;
- begin
- inherited Initialize;
-
- mRadioGroup2 := 0;
- mGroup2 := 0;
- mGraphic3 := 0;
- mBevel2 := 0;
- mText2 := 0;
- end;
-
- {----------}
- Function DModalRadiosData.GetRadioGroup2: SInt16;
- begin
- GetRadioGroup2 := mRadioGroup2;
-
-
- end;
-
- Procedure DModalRadiosData.SetRadioGroup2 (
- inValue: SInt16);
- begin
- mRadioGroup2 := inValue;
-
-
- SignalDataChanged (idRadioGroup2);
- end;
-
- {----------}
- Function DModalRadiosData.GetGroup2: SInt16;
- begin
- GetGroup2 := mGroup2;
-
-
- end;
-
- Procedure DModalRadiosData.SetGroup2 (
- inValue: SInt16);
- begin
- mGroup2 := inValue;
-
-
- SignalDataChanged (idGroup2);
- end;
-
- {----------}
- Function DModalRadiosData.GetGraphic3: SInt16;
- begin
- GetGraphic3 := mGraphic3;
-
-
- end;
-
- Procedure DModalRadiosData.SetGraphic3 (
- inValue: SInt16);
- begin
- mGraphic3 := inValue;
-
-
- SignalDataChanged (idGraphic3);
- end;
-
- {----------}
- Function DModalRadiosData.GetBevel2: SInt16;
- begin
- GetBevel2 := mBevel2;
-
-
- end;
-
- Procedure DModalRadiosData.SetBevel2 (
- inValue: SInt16);
- begin
- mBevel2 := inValue;
-
-
- SignalDataChanged (idBevel2);
- end;
-
- {----------}
- Function DModalRadiosData.GetText2: SInt16;
- begin
- GetText2 := mText2;
-
-
- end;
-
- Procedure DModalRadiosData.SetText2 (
- inValue: SInt16);
- begin
- mText2 := inValue;
-
-
- SignalDataChanged (idText2);
- end;
-
- end.
-